home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Environments / PowerFantasm™ 4.19a / Beginners guide / Beginners Mac Assembly - ed.srd / Beginners Mac Assembly - ed.srd.rsrc / PICT_57.png < prev    next >
Portable Network Graphic  |  1996-08-28  |  141KB  |  816x1056  |  8-bit (256 colors)
Labels: book | bulletin board | reckoner | sky
OCR: Wed Aug 28, 1996 Beginners Guide Macintosh Assembly Language Programming age Following the header is the rest of the parameter block. which will vary depending on the operation. For most operati ions (read, write, rename geteof seteof ,open and setfiletype 11 looks like this struct IOParam ParamBlockH Ieader short ioRefNum; /*refNum for I/O operation char ioVersNum; /*version number char ioPermssn; *Open: permissions (byte)*/ Ptr ioMisc; Rename: new name (GetEOF SetEOF logical end of file (Open: optional ptr to buffer) SetFileType new type) Ptr joBuffer data buffer Ptr* long ioReqC ount: *requested byte count: also ioNewDirID* long 10/ ActCount *actual byte count completed* short ioPosMode; initial file positioning long jioPosOffset; *file position offset Examine file io.s and try to relat ...